/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;


import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import java.io.Serializable;
import org.primefaces.context.RequestContext;



/**
 *
 * @author Eric
 */
@ManagedBean
@RequestScoped
public class DialogBean {

    public void viewInventory(){
        System.out.println("SHOW DIALOG");
        RequestContext context = RequestContext.getCurrentInstance();
        context.execute("statusDlg.show();");
    }
}